﻿/*
* StackExchange Localization
*
* http://code.google.com/p/stackexchange-localization/
*
* http://www.stackexchange.com
* http://meta.stackexchange.com
*
* Copyright (c) 2009 Michal Těhník
*
* http://www.mictech.cz
*
* Licensed under the Apache License 2.0:
*   http://www.apache.org/licenses/LICENSE-2.0
*   
*/

//settings
var url = 'your site url';

$(document).ready(function() {

    //main menu
    $('.nav > ul > li > a:eq(0)').text("Questions");
    $('.nav > ul > li > a:eq(1)').text("Tags");
    $('.nav > ul > li > a:eq(2)').text("Users");
    $('.nav > ul > li > a:eq(3)').text("Badges");
    $('.nav > ul > li > a:eq(4)').text("Unanswered");
    $('.nav > ul > li > a:eq(5)').text("Ask Question");

    //sub menu - homepage
    if (window.location == 'http://' + url + '/') {
        $('#subheader > div > a:eq(0)').text("active");
        $('#subheader > div > a:eq(2)').text("hot");
        $('#subheader > div > a:eq(3)').text("week");
        $('#subheader > div > a:eq(4)').text("month");
    };

    //header - users
    if (window.location.pathname == '/users') {
        $('#subheader > h2').text("Users");
        $('#subheader > div > a:eq(0)').text("reputation");
        $('#subheader > div > a:eq(1)').text("newest");
        $('#subheader > div > a:eq(2)').text("oldest");
        $('#subheader > div > a:eq(3)').text("name");
    };

    //badge legend
    $('#badge-legend > p:eq(0)').text("Gold Badges are rare. You'll have to not only participate but be skilled and knowledgeable to earn these. They're something of an accomplishment!")
    $('#badge-legend > p:eq(1)').text("Silver badges are earned for longer term goals. Silver badges are uncommon, but definitely attainable if you’re interested enough.")
    $('#badge-legend > p:eq(2)').text("Bronze badges are earned for basic use of the Stack Overflow site; they are relatively easy to earn.")

});